package work2;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class TankClient02 extends Frame {
    public void launchFrame(){
        this.setLocation(300,50);
        this.setSize(800,600);
        this.setTitle("TankWar");
        this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {
            System.exit(0);
        }
        });
        setResizable(false);
        setVisible(true);
    }

    public static void main(String[] args) {
        TankClient02 tc =new TankClient02();
        tc.launchFrame();
    }
}
